
Component({
  data: {
    navrect: wx.getMenuButtonBoundingClientRect(),
    backshow: false,
  },
  pageLifetimes: {
    show: function() {
      this.setData({ backshow: getCurrentPages().length > 1 })
    }
  },
  methods: {
    back() {
      wx.navigateBack()
    },
  },
});